<!doctype html>
004-1
<script>
addEventListener("beforeunload",
function() {
if (top.counter++ < 999) {
  location = "navigation-within-beforeunload-2.html?" + top.counter;
}
}, false);
</script>
